package com.osce.interfaces.score;

import cn.hutool.json.JSONObject;
import com.csce.domain.entity.score.ScoreExExamPlaceAllot;
import com.csce.domain.entity.score.ScoreExExamScore;
import com.csce.domain.entity.score.socket.ExPlacePeoPleVo;
import com.csce.domain.entity.score.socket.WaitingPeoPleVo;
import com.osce.common.core.entity.model.LoginUser;

import java.util.Map;

/**
 * 考试Service接口
 *
 * @author zzx
 * @since 2023-09-05
 */
public interface IScoreExExamScoreService {

    ExPlacePeoPleVo saveMark(JSONObject wsRequest, LoginUser user,WaitingPeoPleVo peoPleVo) throws Exception;


    Map<Long, ScoreExExamScore> selectScoreMapByMarkId(Long id);

    /**
     * 获取已经作答的成绩
     * @param allot
     * @return
     */
    Map<Long, ScoreExExamScore> getScoreExExamScoreMap(ScoreExExamPlaceAllot allot,Long examinerId);
}
